<!-- 编辑区域 -->
<div class="lists">
    <!-- 搜索框及工具条 -->
    <div class="c-head-box">
        <form method="get" action="{:Url('suggest_list')}">
            <ul>
                <li class="c-head-search">
                    <!-- 搜索条件 -->
                    <ul>
                        <li><span>用户编号：</span><input type="text" name="user_id" value="{$user_id}"/></li>
                        <li><span>信贷经理编号：</span><input type="text" name="agent_admin_id" value="{$agent_admin_id}"/></li>
                        <li><span>合作商编号：</span><input type="text" name="cooperate_admin_id" value="{$cooperate_admin_id}"/></li>
                    </ul>
                </li>
                <li class="c-head-button">
                    <!-- 操作按钮 -->
                    <div class="fr"><input type="submit" class="but_blue" value="搜索"></div>
                </li>
            </ul>
        </form>
    </div>

    <!--用户列表-->
    <div class="lists-tab-cont">
        <div class="lists-table">
            <table class="pointer" cellpadding="0" cellspacing="0" border="0">
                <thead>
                    <tr>
                        <th class="tabSort-header"><a class="tabSort-header-inner"><p>编号</p></a></th>
                        <th class="tabSort-header"><a class="tabSort-header-inner"><p>客户名称</p></a></th>
                        <th class="tabSort-header"><a class="tabSort-header-inner"><p>信贷经理名称</p></a></th>
                        <th class="tabSort-header"><a class="tabSort-header-inner"><p>合作商名称</p></a></th>
                        <th class="tabSort-header"><a class="tabSort-header-inner"><p>最新发送对象</p></a></th>
                        <th class="tabSort-header"><a class="tabSort-header-inner"><p>最新发送内容</p></a></th>
                        <th class="tabSort-header"><a class="tabSort-header-inner"><p>创建时间</p></a></th>
                        <th class="tabSort-header"><a class="tabSort-header-inner"><p>操作</p></a></th>
                    </tr>
                </thead>
                <tbody>
                {foreach name="suggest_list" item="info"}
                    <tr>
                        <td>{$info.suggest_id}</td>
                        <td>{:widget('common/Name/user',array($info["user_id"]))}</td>
                        <td>{:widget('common/Name/agent_admin',array($info["agent_admin_id"]))}</td>
                        <td>{:widget('common/Name/cooperate_admin',array($info["cooperate_admin_id"]))}</td>
                        <td>{:widget('common/Color/color',array('suggest_type',$info['suggest_type']))}</td>
                        <td title="{$info.content}">{$info.content}</td>
                        <td title="{$info.create_time}">{$info.create_time}</td>
                        <td>
                            {empty name="info['user_id']"}{else/}<a data-type="info-win" data-src="{:Url('suggest_info',array('user_id'=>$info['user_id']))}" data-title="详情" class="blue">详情</a>{/empty}
                            {empty name="info['agent_admin_id']"}{else/}<a data-type="info-win" data-src="{:Url('suggest_agent_info',array('agent_admin_id'=>$info['agent_admin_id']))}" data-title="详情" class="blue">详情</a>{/empty}
                            {empty name="info['cooperate_admin_id']"}{else/}<a data-type="info-win" data-src="{:Url('suggest_cooperate_info',array('cooperate_admin_id'=>$info['cooperate_admin_id']))}" data-title="详情" class="blue">详情</a>{/empty}
                            {eq name="info['suggest_type']" value="1"}
                                <a href="{:Url('suggest_send',array('user_id'=>$info['user_id']))}" class="blue">回复</a>
                            {/eq}
                            {eq name="info['suggest_type']" value="3"}
                            <a href="{:Url('suggest_agent_send',array('agent_admin_id'=>$info['agent_admin_id']))}" class="blue">回复</a>
                            {/eq}
                            {eq name="info['suggest_type']" value="4"}
                            <a href="{:Url('suggest_cooperate_send',array('cooperate_admin_id'=>$info['cooperate_admin_id']))}" class="blue">回复</a>
                            {/eq}
                        </td>
                    </tr>
                {/foreach}
                </tbody>
            </table>
        </div>

        <!-- 翻页模板 -->
        <div class="page">
            {$Think.config.page_html}
        </div>
    </div>
</div>
